package com.bjpowernode.controller;

import com.bjpowernode.common.result.Result;
import com.bjpowernode.service.CustomerRemarkService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@RestController
public class CustomerRemarkController {

    private final CustomerRemarkService customerRemarkService;

    @GetMapping("/api/customerRemark")
    public Result getCustomerRemarkByPage(Integer current, Integer customerId) {
        return Result.OK(customerRemarkService.getCustomerRemarkByPage(current, customerId));
    }

}
